package com.xunfang.demos;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @Author lss
 * @CreateTime 2024/6/11
 * @Description
 */

@WebServlet("/bServlet")
public class BServlet extends HttpServlet {

    @Override
    protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        //接收请求作用域的值
        Object name = req.getAttribute("name");
        System.out.println("name = " + name);



    }
}
